<!DOCTYPE html>
<html class="x-admin-sm">
{include file='public/header'}
<script src="/admin/xadmin/lib/layui/upload.js" charset="utf-8"></script>

<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>名称
                </label>
                <div class="layui-input-block">
                    <input type="text" name="name" placeholder="名称" required="required" lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>key
                </label>
                <div class="layui-input-block">
                    <input type="text" name="dy_key" placeholder="撮合商或者达人key" required="required" lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>类型
                </label>
                <div class="layui-input-block">
                    <input type="radio" name="type" value="1" title="撮合中介" checked>
                    <input type="radio" name="type" value="2" title="主播抖音号">
                    <input type="radio" name="type" value="3" title="第三方小程序">
                </div>
            </div>

            <input type="hidden" name="id" id="id" value="" />
            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />
        </form>
    </div>
    <script>
        let params = {
            addUrl: '/admin/tiktok/addClient',
            editUrl: '/admin/tiktok/editClient',
            detailUrl: '/admin/tiktok/detailClientList',
        }
        form_ajax(params)

    </script>
</body>

</html>